package com.housediyadmin.command.brandCommand
{
	import com.housediyadmin.events.brandEvents.AddBrandEvent;
	import com.housediyadmin.service.BrandRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/15
	 */	
	public class AddBrandCommand extends Command
	{
		[Inject]
		public var service:BrandRemoteObjectService;
		
		[Inject]
		public var event:AddBrandEvent;
		
		override public function execute():void
		{
			service.addBrand(event.brand);
		}
	}
}